package org.xt.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;

/**
 * 因为创建时间和更新时间每个实体类都有，所以抽取出来一个父类
 * @author XiangTao
 *
 */
public class BaseTable {
	@Column
	private Date createTime;
	@Column
	private Date updateTime;
	
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	@Override
	public String toString() {
		return " [createTime=" + createTime + ", updateTime=" + updateTime + "]";
	}
}
